package com.jeomo.masterdata.starter.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jeomo.base.starter.annocations.Keyword;
import com.jeomo.base.starter.entity.BaseEntity;

/**
 * @Author: qbt
 * @Date: 2020/3/1 1:15
 * @Version 1.0
 */
@TableName("master_goods")
public class Goods extends BaseEntity {

    private static final long serialVersionUID = 9120756036878252582L;
    /**
     * 商品码
     */
    @TableId(value = "code", type = IdType.INPUT)
    private String code;
    /**
     * 商品名称
     */
    @Keyword
    private String name;
    /**
     * 组织码
     */
    private String orgCode;
    /**
     * 商户码
     */
    private String merchantCode;

    /**
     * 启用标识
     */
    private Boolean startFlag = true;

    /**
     * 商户码
     */
    @TableField(exist = false)
    @Keyword
    private String merchantName;
    /**
     * 品类码
     */
    private String goodsTypeCode;
    /**
     * 品类名
     */
    @TableField(exist = false)
    @Keyword
    private String goodsTypeName;
    /**
     * 顶级组织码
     */
    private String topOrgCode;

    public String getTopOrgCode() {
        return topOrgCode;
    }

    public void setTopOrgCode(String topOrgCode) {
        this.topOrgCode = topOrgCode;
    }
    public String getGoodsTypeCode() {
        return goodsTypeCode;
    }

    public void setGoodsTypeCode(String goodsTypeCode) {
        this.goodsTypeCode = goodsTypeCode;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public Boolean getStartFlag() {
        return startFlag;
    }

    public void setStartFlag(Boolean startFlag) {
        this.startFlag = startFlag;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public String getMerchantCode() {
        return merchantCode;
    }

    public String getGoodsTypeName() {
        return goodsTypeName;
    }

    public void setGoodsTypeName(String goodsTypeName) {
        this.goodsTypeName = goodsTypeName;
    }

    public void setMerchantCode(String merchantCode) {
        this.merchantCode = merchantCode;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }

}
